<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="/WEB-INF/stripes-security.tld" prefix="ss" %>
<s:layout-render name="/layout.jsp" title="Weapons">
    <s:layout-component name="menu"></s:layout-component>
    <s:layout-component name="main_content">
        <div class="main-content">
            <div class="content">
                 <ss:secure roles="admin">
                <img src="${pageContext.request.contextPath}/images/banner-admin.png" alt="Banner" id="banner"/>                
                </ss:secure>
                <ss:secure roles="user">
                <img src="${pageContext.request.contextPath}/images/banner-scout.png" alt="Banner" id="banner"/>                
                </ss:secure>
                <h1><f:message key="edit.weapon"/></h1>
                <ss:secure roles="admin">
                    <s:form beanclass="cz.muni.fi.pa165.creatures.web.WeaponsActionBean">
                        <s:hidden name="weapon.id"/>
                        <%@include file="/forms/createWeapon.jsp"%>
                        <s:submit name="save"><f:message key="save"/></s:submit>
                        <s:submit name="cancel"><f:message key="cancel"/></s:submit>
                    </s:form>
                </ss:secure>
            </div>
        </div>
    </s:layout-component>
</s:layout-render>
